<template>
  <div>
    <a href="/audit" @click="amend(i.id)" v-for="i in message_list" :key="i.id">
      {{i.name}}
    </a>
  </div>
</template>

<script>
export default {
name: "message",
  data(){
  return{
    message_list:[],
  }
  },
  methods:{
    amend(id){

    }
  },
  created() {
    this.$axios({
      url: 'http://127.0.0.1:8000/z/message/?id=' + localStorage.getItem('uid')
    }).then(res => {
      console.log(res.data)
      this.messages = res.data.data
    })
  }
}
</script>

<style scoped>

</style>
